<!DOCTYPE html>
<html>
<head>
  <title>注册</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
  <script src="jquerydemo/jquery.min.js"></script>

  <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
  <script src="js/register.js"></script>
</head>
<body>
<div class="row">
<div class="col-sm-5"></div>
<div class="col-sm-4"><h1>注册</h1></div>
<div class="col-sm-3"></div>
</div>

<div class="row">
  <div class="col-sm-3"></div>
 	 <div class="col-sm-6">
		<form action="LoginServlet">
		  <div class="form-group">
		    <label for="email">用户名:</label>
		    <input type="text" class="form-control" id="uname" name="uname">
		    <p style="color:red;display: none" id="unamep" >用户名已经存在，请重新输入</p>
		  </div>
		  
		   <div class="form-group">
		    <label for="">角色:</label>
		    <select  class="form-control" id="role" name="role">
		    <option value="学生">学生</option>
		    <option value="老师">老师</option>
		    </select>
		  </div>
		  
		  <div class="form-group">
		    <label for="">班级:</label>
		    <select  class="form-control" id="cname" name="cname">
		    <option value="JAVA10">JAVA10</option>
		    <option value="JAVA11">JAVA11</option>
		    </select>
		  </div>
		  
		  
		  <div class="form-group">
		    <label for="pwd">密码:</label>
		    <input type="password" class="form-control" id="pwd" name="password">
		  </div>
		  <div class="form-group">
		    <label for="pwd">再次输入密码:</label>
		    <input type="password" class="form-control" id="pwd2" name="password">
		  </div>
		 <button type="submit" class="btn btn-primary">注册</button>
		  <a href="login.html" class="btn btn-success">已经有账号？直接登录</a>
		</form>
	 </div>
	 
	  <div class="col-sm-3"></div>
</div>
</body>
</html>